package com.yudean.esb.mapper.esb;

import com.yudean.esb.domain.esb.EsbRecvServiceMapper;
import com.yudean.esb.domain.esb.EsbRecvServiceTempData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface EsbRecvServiceTempDataMapper {

    void insert(EsbRecvServiceTempData data);

    //与上述用法效果一致，只不过data中map的key是大写的attribute
    void insertWithMapKeyInUpperCase(EsbRecvServiceTempData data);

    long count(String transactionID);

    List<Map<String, Object>> selectFwsByPkgId(String controlId);

    long countFwsControlId(String controlId);

    List<Map<String, String>> selectConflict(
            @Param("list") List<EsbRecvServiceMapper> list,
            @Param("serviceID") String serviceID);

    void delete(EsbRecvServiceTempData data);

}
